Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kms/vc4_hdmi: Refuse 4096x2160@60 hdmi modes #5038

Merged
merged 1 commit into from
May 26, 2022

Conversation

popcornmix
Copy link
Collaborator

These are no reliable without overclocking.
See: #5034

Signed-off-by: Dom Cobley popcornmix@gmail.com

@popcornmix
Copy link
Collaborator Author

Submitted as draft to hear comments.
We could make this conditional on core_freq being overclocked, but I don't think that is sufficient.
You may also need core_freq_min set (need to check if that is something driver can discover).

@popcornmix
Copy link
Collaborator Author

Updated to also check if core_freq_min is boosted and only then allow these modes.

@6by9
Copy link
Contributor

6by9 commented May 17, 2022

Looks reasonable to me as we know that 4096x2160 does require a higher core clock than 3840x2160 to allow the HVS time to generate all the pixels, even though they use the same pixel clock.

@alanbork
Copy link

As long as they are still accessible if the proper lines are added to config.txt this seems like a reasonable thing to do.

@popcornmix
Copy link
Collaborator Author

In my testing the 4096x2160@50/60 modes were omitted by default and were present when

core_freq_min=600
core_freq=600

were added.

@ghost
Copy link

ghost commented May 17, 2022

This should perhaps be documented somewhere, since the Pi 4 is described as supporting 4K. The obvious location for documentation would be https://github.com/raspberrypi/documentation. Would you like me to submit a PR to have this added?

An alternative would be to have the software print out a statement that the requested mode requires overclocking.

@popcornmix
Copy link
Collaborator Author

I think the common definition of 4k is 3840x2160, but yes, feel to submit a PR that clarifies that 4096x2160@60 is not supported without a core frequency overclock to 600MHz.

@ghost
Copy link

ghost commented May 17, 2022

I think the common definition of 4k is 3840x2160...

Just for completeness here, 4096 x 2160 @ 60Hz (and 50Hz) is listed as supported by Pi 4 currently in the documentation (at https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi_mode).

@ghost
Copy link

ghost commented May 17, 2022

Can I just check - if core_freq_min is set to 600, without setting core_freq, then is that not the same as setting both core_freq_min and core_freq to 600? Just trying to nail down the simplest config.

@alanbork
Copy link

alanbork commented May 17, 2022 via email

@rofehr
Copy link

rofehr commented May 17, 2022

4K is 4.096 x 2.160 and
UHD is 3.840 x 2.160.

@alanbork
Copy link

4K is 4.096 x 2.160 and UHD is 3.840 x 2.160.

plenty of TVs proudly proclaim 4k on the box but are really 3840x

even if the terms are well defined the usage doesn't reflect that

@popcornmix popcornmix marked this pull request as ready for review May 24, 2022 12:18
@popcornmix
Copy link
Collaborator Author

@pelwell okay to merge?

* 4096x2160@60 requires a core overclock to work, so register
* whether that is sufficient.
*/
bool vc5_hdmi_enable_4096by2160
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semi-colon.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. gcc only gives a warning for this, which seems surprising.

These are no reliable without overclocking.
See: raspberrypi#5034

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
@popcornmix
Copy link
Collaborator Author

Updated.

@pelwell pelwell merged commit 47f8ffa into raspberrypi:rpi-5.15.y May 26, 2022
@popcornmix popcornmix deleted the no4096x2160 branch May 26, 2022 14:46
popcornmix added a commit to raspberrypi/firmware that referenced this pull request May 27, 2022
kernel: kms/vc4_hdmi: Refuse 4096x2160@60 hdmi modes
See: raspberrypi/linux#5038

kernel: vc-sm-cma: Restore correct cache maintainance operations
See: raspberrypi/linux#5047
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request May 27, 2022
kernel: kms/vc4_hdmi: Refuse 4096x2160@60 hdmi modes
See: raspberrypi/linux#5038

kernel: vc-sm-cma: Restore correct cache maintainance operations
See: raspberrypi/linux#5047
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants